<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>图书列表</title>
<style type="text/css">
body {
	font-size: 10pt;
}

.icon {
	margin: 10px;
	border: 2px solid gray;
	width: 160px;
	height: 180px;
	text-align: center;
	float: left;
}

img {
	height: 100px;
	width: 100px;
}
</style>
</head>
<body>
	<c:forEach items="${bookList }" var="book">
		<div class="icon">
			<a href="<c:url value='/BookServlet?method=load&bid=${book.bid }'/>">
				<img src="<c:url value='/${book.image }'/>">
			</a>
			<br />
			<a href="<c:url value='/BookServlet?method=load&bid=${book.bid }'/>">
				${book.bname }
			</a>
		</div>
	</c:forEach>
</body>
</html>